package com.deshan.websys.code.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deshan.websys.code.mapper.ChatRecordMapper;
import com.deshan.websys.code.model.ChatRecords;
import com.deshan.websys.code.service.ChatRecordService;

import lombok.AllArgsConstructor;

@Service
@AllArgsConstructor
public class ChatRecordServiceImpl extends ServiceImpl<ChatRecordMapper, ChatRecords> implements ChatRecordService {

	private final ChatRecordMapper chatRecordMapper;
	
	@Override
	public List<ChatRecords> listChatRecords(String customerId, String sid) {
		
		return chatRecordMapper.listChatRecordsByCidAndSid(customerId, sid);
	}

}
